package cn.caidabao.gb.util;

import cn.caidabao.gb.bean.PlaybackCmdObject;

public class PlaybackCmdObjectUtils {

    public static PlaybackCmdObject generateDragObject(String deviceId,Integer dragSeconds){
        PlaybackCmdObject res = new PlaybackCmdObject();
        res.setCmdContent(String.format(
                "PLAY RTSP/1.0\r\n" +
                "CSeq: 1\r\n" +
                "Range: npt=%s-\r\n",dragSeconds));
        res.setDeviceId(deviceId);
        return res;
    }
}
